<?php
class Api_jsticket{
    public function post(){
        if(!isset($_POST['secret']) || $_POST['secret']!="b724a0315e6e50ebc7664d241b89b9d4"){
            exit(json_encode(array('code'=>'01','msg'=>'secret error')));
        }else{
            require_once '../core/wechat/jssdk.php';
            require_once '../core/mem/mem.php';
            $JSSDK = new Jssdk('wx75d7dc5f9c92e40f','488cc5a8b13d27c0b110c9756f5ca941',Mem::getInstance(),'lumei');
            exit(json_encode(array('code'=>'00','msg'=>'success','data'=>$JSSDK->getJsApiTicket())));
        }
    }
}